list=[
    ['A','B','C','D'],
    ['1','2','3','4'],
    ['5','6','7','8'],
]
# print(list)

for row in list:
    for col in row:
        print(col,end='\t')
    print()

list=[[col for col in range(1,row+1)] for row in range(1,6)]
print(list)